package com.my.core.util.spring;


import org.springframework.util.StringUtils;

import java.util.Properties;

/**
 *   Properties props = System.getProperties();
 *   往 props 添加值
 */
public class PropsUtil {
    public static void setProperty(final Properties props, final String key, final String value) {
        if (StringUtils.isEmpty((Object) props.getProperty(key))) {
            props.setProperty(key, value);
        }
    }
}

